package 
{
	import Engine.Engine;
	import flash.display.Sprite;
	import Game.MainGame;
	
	/**
	 * ...
	 * @author Vijay Ramani
	 */
	[SWF(backgroundColor='0x000000',width='640',height='480',frameRate='60')]
	public class Main extends Engine 
	{
		private static var ref:Main = null;
		public static function GetRef():Main
		{
			return ref;
		}
		
		private var mainGame:MainGame = null;
		
		public function Main():void 
		{
			ref = this;
			super();
		}
		
		override public function Init():void
		{
			mainGame = new MainGame();
			addChild(mainGame);
		}
		
		override public function Resize():void
		{
			//trace(StageWidth);
			//trace(StageHeight);
			//trace("------------------");
		}
		
		override public function Update():void
		{
			//trace(StageWidth);
			mainGame.Update();
		}
	}
	
}